package com.base.service;

import com.base.dto.MoneyGoldWebListDTO;
import com.base.po.param.NetState;
import com.base.po.voip.MoneyGold;
import com.base.po.voip.MoneyGoldExample;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

public interface MoneyGoldService {
    /**
     *  获取某个用户.某个类别的金积分
     */
    BigDecimal getGoldMoneyByUserId(String userId, Integer statement);
    /**
     *  获取某个用户.某个类别的金积分详情
     */
    Page<MoneyGold> getGoldMoneyDetailByUserId(String userId, Integer statement, Integer pageNo, Integer pageSize);

    int countByExample(MoneyGoldExample example);

    int deleteByExample(MoneyGoldExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(MoneyGold record);

    int insertSelective(MoneyGold record);

    List<MoneyGold> selectByExample(MoneyGoldExample example);

    MoneyGold selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") MoneyGold record, @Param("example") MoneyGoldExample example);

    int updateByExample(@Param("record") MoneyGold record, @Param("example") MoneyGoldExample example);

    int updateByPrimaryKeySelective(MoneyGold record);

    int updateByPrimaryKey(MoneyGold record);

    NetState moneyGoldWebList(final MoneyGoldWebListDTO moneyGoldWebListDTO);

    NetState transfer(String userId, String id, BigDecimal money);

    BigDecimal selectAllMoneyByLike(String txUserId, String str);
}
